package devdiv.coldljy.test;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class ForwardActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        TextView tv = (TextView)findViewById(R.id.txt);
        tv.setText("Forward Activity");
        
        Intent intent = getIntent();
        if (Intent.ACTION_VIEW.equals(intent.getAction())) {
         Uri uri = intent.getData();
         if ("sf".equals(uri.getScheme()) || "smsto".equals(uri.getScheme())) {
          Bundle bundle = intent.getExtras();
          String dest = uri.getSchemeSpecificPart();
          Log.d("sf", dest);
          Log.d("sf", bundle.toString());
         }
        }
    }
    
  	
}